using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Ent.Web.WebControl;
public partial class Controls_Marque : System.Web.UI.UserControl, iControls_Marque
{
    string _text = "";
    public string MarqueText
    {
        set { _text = value; }
    }
    WebControl _control = null;
    public WebControl MarqueControl
    {
        set { _control = value; }
    }
    public Controls_Marque()
    {
        this.PreRender += new EventHandler(Controls_Marque_PreRender);
    }

    void Controls_Marque_PreRender(object sender, EventArgs e)
    {
        if (_control == null)
        {
            Label lbl = new Label();
            lbl.Text = _text;
            pnlMarque.Controls.Add(lbl);
        }
        else
            pnlMarque.Controls.Add(_control);
    }
}
